package com.ujoku.view.domain.oa;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.labillusion.core.util.jsonFormat.SimpleDateTimeSerializer;
import com.labillusion.core.util.jsonFormat.SimpleDoubleSerializer;
import com.ujoku.domain.Address;

import java.util.Date;

/**
 * Created by suggestion on 2015/10/23.
 */
public class OAMemberView {
    private int user_id;
    private String email;

    private String real_name;
    @JsonSerialize(using = SimpleDateTimeSerializer.class)
    private Date reg_time;
    private int orderCount;
    private int favCount;
    private int cellarCount;
    private String phone_mob;

    private int level;
    private String levelName;
    private String nextLevelName;
    @JsonSerialize(using = SimpleDoubleSerializer.class)
    private Double upgradeCost;
    @JsonSerialize(using = SimpleDoubleSerializer.class)
    private Double discount;
    @JsonSerialize(using = SimpleDoubleSerializer.class)
    private Double balance;
    private int onSaleCount;
    private int friendCount;

    private Address primaryAddress;

    private int salesCount;

    private int scores;

    private String ascription;

    private Boolean status;

    public Address getPrimaryAddress() {
        return primaryAddress;
    }

    public void setPrimaryAddress(Address primaryAddress) {
        this.primaryAddress = primaryAddress;
    }

    private String headPortraitUrl;
    private boolean portrait;

    private int unreadCounts;

    public int getUnreadCounts() {
        return unreadCounts;
    }

    public void setUnreadCounts(int unreadCounts) {
        this.unreadCounts = unreadCounts;
    }

    public String getHeadPortraitUrl() {
        return headPortraitUrl;
    }

    public void setHeadPortraitUrl(String headPortraitUrl) {
        this.headPortraitUrl = headPortraitUrl;
    }

    public boolean isPortrait() {
        return portrait;
    }

    public void setPortrait(boolean portrait) {
        this.portrait = portrait;
    }

    public int getFriendCount() {
        return friendCount;
    }

    public void setFriendCount(int friendCount) {
        this.friendCount = friendCount;
    }

    public int getOnSaleCount() {
        return onSaleCount;
    }

    public void setOnSaleCount(int onSaleCount) {
        this.onSaleCount = onSaleCount;
    }

    public Double getBalance() {
        return balance;
    }

    public void setBalance(Double balance) {
        this.balance = balance;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public Double getDiscount() {
        return discount;
    }

    public void setDiscount(Double discount) {
        this.discount = discount;
    }

    public String getLevelName() {
        return levelName;
    }

    public void setLevelName(String levelName) {
        this.levelName = levelName;
    }

    public int getOrderCount() {
        return orderCount;
    }

    public void setOrderCount(int orderCount) {
        this.orderCount = orderCount;
    }

    public int getFavCount() {
        return favCount;
    }

    public void setFavCount(int favCount) {
        this.favCount = favCount;
    }

    public int getCellarCount() {
        return cellarCount;
    }

    public void setCellarCount(int cellarCount) {
        this.cellarCount = cellarCount;
    }

    public Date getReg_time() {
        return reg_time;
    }

    public void setReg_time(Date reg_time) {
        this.reg_time = reg_time;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }


    public String getReal_name() {
        return real_name;
    }

    public void setReal_name(String real_name) {
        this.real_name = real_name;
    }


    public String getPhone_mob() {
        return phone_mob;
    }

    public void setPhone_mob(String phone_mob) {
        this.phone_mob = phone_mob;
    }

    public String getNextLevelName() {
        return nextLevelName;
    }

    public void setNextLevelName(String nextLevelName) {
        this.nextLevelName = nextLevelName;
    }

    public Double getUpgradeCost() {
        return upgradeCost;
    }

    public void setUpgradeCost(Double upgradeCost) {
        this.upgradeCost = upgradeCost;
    }

    public int getSalesCount() {
        return salesCount;
    }

    public void setSalesCount(int salesCount) {
        this.salesCount = salesCount;
    }

    public int getScores() {
        return scores;
    }

    public void setScores(int scores) {
        this.scores = scores;
    }

    public String getAscription() {
        return ascription;
    }

    public void setAscription(String ascription) {
        this.ascription = ascription;
    }

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

}
